<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心 - ${title}</title> 
<#include "/front/head.html"/>
<link type="text/css" rel="stylesheet" href="/res/front/css/sytle/user-css/user_message.css" />
<script type="text/javascript">
$(document).ready(function(){
	$('.uMessage_button').hover(function(){
		$(this).addClass("uedit_inp2");
	},function(){
		$(this).removeClass("uedit_inp2");
	});
});
</script>

</head>
<!---------- 账户个人信息页面\ROOT\WEB-INF\front\member\index.html ---------->
	
<body>
	<!-- 头部 header.html -->
    <#include "/front/common/header.html"/>
    <!-- 中部 -->
    <div class="memeber_middle">
    	<div class="member_location_div">
            <span>
                <b><a href="/index.jspx">首页</a></b>&nbsp;>
                <b>资金管理</b>&nbsp;>
                <b>资产账户信息</b>
            </span>
        </div>
    	<div class="memeber_centre">
        	<!-- 左边目录 -->
            <div class="memeber_left_nav_div">
            	<#include "会员中心页_导航.html"/>
            </div>
            <!-- 右边目录明细 -->
            <div class="member_right_detail_div">
            	<div class="userMessage_div">
                	<div class="uMessage_title_header"><b>个人信息</b></div>
                    <div class="uMessage_table">
                    	<!-- 图片 -->
                    	<div class="photo_div">
                            <div class="photos">
                                <#if tmember.headurl??>
                                    <img src="${tmember.headurl}" id="preImg0" onerror="this.src='/res/front/img/imagesForFront/portrait.jpg'" border="0" width="120" height="150" />
                                <#else>
                                    <img src="/res/front/img/imagesForFront/portrait.jpg" id="preImg0" border="0" width="120" height="150" />
                                </#if>
                            </div>
                            <div style="text-align:center;">
                                <a class="btn_addPic"><span id="ufc0"><em></em>添加图片</span>
                                    <input type="file" id="uploadFile0" tabindex="3" size="8" name="pic" class="filePrew" accept="image/*">
                                </a><br />
                                    <input type="text" id="uploadImgPath0"  name="m_b_pic" value="" size="8" style="display: none;"/> 
                                    <input type="hidden" id="mark0" value="false"/>
                                    <input type="button" value="上传" onclick="upload(0);" class="Uuploading" />
                                    <br/>（图片大小不超过500K）
                                   <br/>
                            </div>
                    	</div>
                        <!-- 账户信息 -->
                        <div class="userMessage_list_div">
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td height="35" align="right">账户：</td>
                                    <td>${user.loginname!}</td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">昵称：</td>
                                    <td>${user.nickname!}</td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">真实姓名：</td>
                                    <td>${user.truename!}</td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">身份证号：</td>
                                    <td>${user.idcard!}</td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">手机号码：</td>
                                    <td>${user.phone!}</td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">邮箱地址：</td>
                                    <td>${user.email!}</td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">性别：</td>
                                    <td>
                                        <#list sexMap?keys as idKey>
                                            <#if idKey==user.sex!?string>
                                                ${sexMap[idKey]}
                                            </#if>
                                        </#list>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">出身日期：</td>
                                    <td>${user.birthday!?string("yyyy-MM-dd")}</td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">最高学历：</td>
                                    <td>
                                        <#list edudegreeMap?keys as idKey>
                                            <#if idKey==user.edudegree!?string>
                                                ${edudegreeMap[idKey]}
                                            </#if>
                                        </#list>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">毕业学院：</td>
                                    <td>${user.graduated!}</td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">婚姻状况：</td>
                                    <td>
                                        <#list marriageMap?keys as idKey>
                                            <#if idKey==user.marriage!?string>
                                                ${marriageMap[idKey]}
                                            </#if>
                                        </#list>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">居住地址：</td>
                                    <td>${user.addr!}</td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">公司名称：</td>
                                    <td>${user.corpindustry!}</td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">公司规模：</td>
                                    <td>
                                        <#list corpsizeMap?keys as idKey>
                                            <#if idKey==user.corpsize!?string>
                                                ${corpsizeMap[idKey]}
                                            </#if>
                                        </#list>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">职位：</td>
                                    <td>${user.position!}</td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">平均月收入：</td>
                                    <td>${user.income!}</td>
                                </tr>
                                <tr>
                                    <td>
                                    	<input id="submit_inp" type="button" value="修改" onclick="window.location.href='${base}/member/toMemberinfoEdit.jspx'" class="uMessage_button usubmit_inp">
                                    </td>
                                    <td>&nbsp;</td>
                                </tr>
                            </table>
                        </div>
                        <div style="clear:both;"></div>
                    </div>
                </div>
            </div>
            <div style="clear:both;"></div>
        </div>
    </div>
    <!-- 文件上传 -->
	<script type="text/javascript">
		//上传图片
		function upload(n) {
			var of = $("#uploadFile"+n);
			//检查是否选择了图片
			if(of.val()=="") {
				alert("请先选择图片");
				return;
			}
			//将file移动至上传表单
			$("#fileContent").empty();
			$("#fileContent").append(of);
			//复制一个file放至原处
			$("#ufc"+n).append(of.clone().attr("value",""));
			//修改属性
			of.attr("id","");
			of.attr("name","uploadFile");
			//其他表单
			$("#ufFileName").val($("#fileName"+n).val());
			$("#ufWidth").val($("#zoomWidth"+n).val());
			$("#ufHeight").val($("#zoomHeight"+n).val());
			//先清除
			$("#ufMark").val("");
			$("#ufMark").val($("#mark"+n).val());
			$("#uploadNum").val(n);
			$("#uploadForm").submit();
		}
		//剪裁图片
		function imgCut(n) {
			if($("#uploadImgPath"+n).val()=="") {
				alert("请先上传图片");
				return;
			}
			var url = "/common/v_image_area_select.do?uploadNum="+n+"&imgSrcPath="
				+$("#uploadImgPath"+n).val()+"&zoomWidth="+$("#zoomWidth"+n).val()+"&zoomHeight="+$("#zoomHeight"+n).val();
			window.open(url,"imgcut","height=550, width=1000, top=0, left=0, toolbar=no, menubar=no, scrollbars=auto, resizable=yes,location=no, status=no");
		}
		//预览图片
		function previewImg(n) {
			var img = $("#uploadImgPath"+n).val();
			if(img!="") {
				if(img.indexOf("?")==-1) {
					$("#preImg"+n).attr("src",img+"?d="+new Date()*1);
				} else {
					$("#preImg"+n).attr("src",img+"&d="+new Date()*1);
				}
				if(!$("#preImg"+n).attr("noResize")) {
					$("#preImg"+n).css("width","auto");
					$("#preImg"+n).css("height","auto");
				}
			} else {
				$("#preImg"+n).removeAttr("src");		
			}
		}
    </script>
	<form id="uploadForm" action="/imageUpload.jspx" method="post" enctype="multipart/form-data" target="hiddenIframe" style="display:none;width:0px;height:0px;">
		<span id="fileContent"></span>
		<input id="ufWidth" type="hidden" name="zoomWidth"/>
		<input id="ufHeight" type="hidden" name="zoomHeight"/>
		<input id="ufFileName" type="hidden" name="fileName"/>
		<input id="ufMark" type="hidden" name="mark"/>
		<input id="uploadNum" type="hidden" name="uploadNum"/>
	</form>
	<iframe name="hiddenIframe" frameborder="0" border="0" style="display:none;width:0px;height:0px;"></iframe>
  	<!-- 文件上传end -->
    <!-- 底部 -->
    <#include "/front/common/footer.html"/>
</body>
</html>
